import django_filters

from managesys.models import Student


class StudentFilter(django_filters.FilterSet):
    name = django_filters.CharFilter(lookup_expr='startswith')
    tel = django_filters.CharFilter(lookup_expr='contains')

    class Meta:
        modle = Student
        files = ('name','tel')